package com.cx.mall.demo.controller;

import com.cx.mall.common.utils.ResponseVO;
import com.cx.mall.demo.model.Connect;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController("demoTestController")
@RequestMapping("/test")
public class TestController {
    @Autowired
    private Connect connect;
    @GetMapping("/demoConnect")
    public ResponseVO getConnect(){
        return ResponseVO.success(connect.toString());
    }
}